import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import admin from './modules/admin'
import student from './modules/student'
import order from './modules/order'
import dataBase from './modules/dataBase'
import payment from './modules/payment'
// 权限
import permission from './modules/permission'
Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    admin,
    student,
    order,
    payment,
    dataBase,
    permission
  },
  getters
})

export default store
